﻿var s = '';
$if(QuoteTopic)$
$Topics:{t|
s += '<p><a href="topic.aspx?topicid=$t.Id$">$t.Title$</a>[<a href="profile.aspx?uid=$t.AuthorId$">$t.AuthorName$</a>]</p>';
}$
$endif$

$if(QuoteUser)$
$Users:{u|
s += '<p>$u.Username$</p>';
}$
$endif$

$if(QuotePicture)$
$Pictures:{p|
s += '<p><img src="attach.aspx?attachid=$p.Id$" alt="$p.Title$" />[<a href="profile.aspx?uid=$p.UID$">$p.Username$</a>]</p>';
}$
$endif$
document.write(s.replace("&quote;", "'"));